<template>
  <el-radio-group v-model="username">
    <el-radio-button label="left">Left</el-radio-button>
    <el-radio-button label="right">Right</el-radio-button>
    <el-radio-button label="top">Top</el-radio-button>
  </el-radio-group>
  <div style="margin: 20px"></div>
  <el-form
      label-width="100px"
      :model="username"
      style="max-width: 460px"
  >
    <el-form-item label="Name">
      <el-input v-model="username"></el-input>
    </el-form-item>
    <el-form-item label="Activity zone">
      <el-input v-model="password"></el-input>
    </el-form-item>
    <el-form-item label="Activity form">
      <el-input v-model="male"></el-input>
    </el-form-item>
  </el-form>
</template>

<script>
// import xxx from '@/xxxx/xxxx';
export default {
  name: "useradd",
  data() {
    return {
      username: "lisi",
      password: "111111",
      male: ""
    }
  },
  setup() {
    // vue也没有，但是数据初始化之后
  },

  created() {
    // vue创建完毕 ， 数据初始化之后 页面还未渲染 --- 不可以操作dom
  },

  mounted() {
    // 页面已经渲染，可以操作dom

  },

  beforeRouteEnter(to, from, next) {
    // 不能通过this访问组件实例
    console.log(to, next);
    next();
  }
}
</script>

<style scoped>

</style>